package org.ddd.orderdemo.application.convertor;

import org.ddd.orderdemo.application.pojo.response.OrderResponse;
import org.ddd.orderdemo.domain.model.order.Order;

public class OrderConvertor {


    public static OrderResponse convertToResponse(Order order){
        OrderResponse orderResponse = new OrderResponse();
        orderResponse.setOrderNo(order.getOrderNo());
        orderResponse.setTotalPrice(order.getTotalPrice());
        orderResponse.setStatus(order.getStatus());
        return orderResponse;
    }
}
